
interface Ii18nData{
    lang:string
}

interface IPayload{
    type:string,
    lang:string
} 

export default {
    namespaced:true,
    state:()=>{
        return {
            lang:"zh-cn"
        }
    },
    mutations:{
        changeLang(state:Ii18nData,payload:IPayload){
            state.lang = payload.lang;
        }
    }

}